package com.example.demo.mapper;

import com.example.demo.entity.Student;
import com.example.demo.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from users where username = #{username}")
    Users findUserByName(String username);
    @Select("select * from student")
    List<Student> getStudentList();
}
